package com.azxc.rapid.plus.system.wrapper;


import com.azxc.rapid.core.mp.support.BaseEntityWrapper;
import com.azxc.rapid.core.tool.utils.BeanUtil;
import com.azxc.rapid.plus.system.entity.AppRoleMenuEntity;
import com.azxc.rapid.plus.system.vo.AppRoleMenuVO;


/**
 * APP角色菜单表 包装类,返回视图层所需的字段
 */
public class AppRoleMenuWrapper extends BaseEntityWrapper<AppRoleMenuEntity, AppRoleMenuVO> {

	public static AppRoleMenuWrapper build() {
		return new AppRoleMenuWrapper();
	}

	@Override
	public AppRoleMenuVO entityVO(AppRoleMenuEntity appRoleMenu) {
		AppRoleMenuVO appRoleMenuVO = BeanUtil.copy(appRoleMenu, AppRoleMenuVO.class);

		//User createUser = UserCache.getUser(appRoleMenu.getCreateUser());
		//User updateUser = UserCache.getUser(appRoleMenu.getUpdateUser());
		//appRoleMenuVO.setCreateUserName(createUser.getName());
		//appRoleMenuVO.setUpdateUserName(updateUser.getName());

		return appRoleMenuVO;
	}

}
